﻿<UserControl x:Class="Patterns4Net.ArchitectureExplorer.Views.ErrorsWindowView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:cal="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
             mc:Ignorable="d" 
             d:DesignHeight="108" d:DesignWidth="613">
    <ListView x:Name="Errors" SelectedValue="{Binding SelectedError}"
        cal:Action.Target="{Binding}"
        cal:Message.Attach="[Event MouseDoubleClick] = [Action DoubleClick]">
        <ListView.View>
            <GridView>
                <GridView.Columns>
                    <GridViewColumn Header="Type" Width="Auto" DisplayMemberBinding="{Binding TypeName}">
                    </GridViewColumn>
                    <GridViewColumn Header="Method" Width="Auto" DisplayMemberBinding="{Binding MethodName}"/>
                    <GridViewColumn Header="Pattern" Width="Auto" DisplayMemberBinding="{Binding PatternName}"/>
                    <GridViewColumn Header="Error" Width="Auto" DisplayMemberBinding="{Binding ErrorMessage}"/>
                </GridView.Columns>
            </GridView>
        </ListView.View>
    </ListView>
</UserControl>
